projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdacdfb
)
Fix parsing of color names containing numbers
author
Carlos Garnacho
<carlosg@gnome.org>
Thu, 17 Feb 2011 19:04:29 +0000
(20:04 +0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Thu, 17 Feb 2011 19:10:49 +0000
(20:10 +0100)
They were being defined correctly through @define-color
in CSS, but parsing failed at the moment of creating
GtkSymbolicColors depending on these.
gtk/gtkcssprovider.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssprovider.c
b/gtk/gtkcssprovider.c
index 2de3a8ac7a5f0d9d1c200b22f4325275f423bbe0..a0be44ab9ff5ea780b48f54d0af7ba675ddfbff4 100644
(file)
--- a/
gtk/gtkcssprovider.c
+++ b/
gtk/gtkcssprovider.c
@@
-1982,7
+1982,7
@@
symbolic_color_parse_str (const gchar *string,
str++;
end = str;
- while (*end == '-' || *end == '_' || g_ascii_isal
pha
(*end))
+ while (*end == '-' || *end == '_' || g_ascii_isal
num
(*end))
end++;
name = g_strndup (str, end - str);